Explictly init tm struct.
authorrobertl <robertl>
Thu, 23 Mar 2006 17:22:25 +0000 (17:22 +0000)
committerrobertl <robertl>
Thu, 23 Mar 2006 17:22:25 +0000 (17:22 +0000)
holux.c

diff --git a/holux.c b/holux.c
index a020a8bbeb85aea661201ea8e9154217f2ba3953..f3f44876ace8afeb8dfd99c29d87f1de14eafd2a 100644 (file)
--- a/holux.c
+++ b/holux.c
@@ -90,6 +90,7 @@ static void data_read(void)
        struct tm tm;
        struct tm *ptm;
 
+    memset(&tm, 0, sizeof(tm));
 
     HxWpt = xcalloc(GM100_WPO_FILE_SIZE, 1);